@switch($field_type)
    @case('Input')
            @component('admin.components.input',[
                'title'=>$title,
                'name'=>$name,
                'default'=>$default,
                'required'=>$required,
                ])
            @endcomponent
        @break
    @case('Textarea')
        <h6 class="mb-2 mt-2">{{$title}}</h6>
        <textarea name="{{$name}}" @if(!isset($required)) required @endif class="form-control light" placeholder="请输入{{$title}}">{{$default}}</textarea>
        @break
    @case('Editor')
         <h6 class="mb-2 mt-2">{{$title}}</h6>
         <textarea name="{{$name}}" @if(!isset($required)) required @endif class="summernote" placeholder="请输入{{$title}}">{{$default}}</textarea>
 
        @break
    @case('Photos')
    

        <h6 class="mb-2 mt-2">{{$title}}</h6>

        <ul class="img-list d-flex" id="{{$name}}" name="{{$name}}"></ul>

        <textarea style="display:none" name="{{$name}}" @if(!isset($required)) required @endif class="form-control light photos-textarea" placeholder="请输入{{$title}}">{{$default}}</textarea>
        
        <input type="file" class="photos" data-name="{{$name}}" multiple="multiple">
        @break
    @case('Photo')
        <h6 class="mb-2 mt-2">{{$title}}</h6>

        <ul class="img-list d-flex" id="{{$name}}" name="{{$name}}"></ul>

        <textarea style="display:none" name="{{$name}}" @if(!isset($required)) required @endif class="form-control light photos-textarea" placeholder="请输入{{$title}}">{{$default}}</textarea>
        
        <input type="file" class="photos" data-name="{{$name}}" data-one="1">
        @break
    @case('Files')
        <h6 class="mb-2 mt-2">{{$title}}</h6>
        <textarea name="{{$name}}" @if(!isset($required)) required @endif class="form-control light" placeholder="请输入{{$title}}">{{$default}}</textarea>
        @break
    @case('Audio')
        <h6 class="mb-2 mt-2">{{$title}}</h6>
        <textarea name="{{$name}}" @if(!isset($required)) required @endif class="form-control light" placeholder="请输入{{$title}}">{{$default}}</textarea>
        @break
    @case('Video')
        <h6 class="mb-2 mt-2">{{$title}}</h6>
        <textarea name="{{$name}}" @if(!isset($required)) required @endif class="form-control light" placeholder="请输入{{$title}}">{{$default}}</textarea>
        @break
    @case('Radio')
        <h6 class="mb-2 mt-2">{{$title}}</h6>
        <textarea name="{{$name}}" @if(!isset($required)) required @endif class="form-control light" placeholder="请输入{{$title}}">{{$default}}</textarea>
        @break
    @default
        
@endswitch

 